package com.prototype.improve.self;

public class Client {

    public static void main(String[] args) throws CloneNotSupportedException {
        Dog dog = new Dog();
        dog.friend = new Dog();
        Dog dog1 = (Dog) dog.clone();
        Dog dog2 = (Dog) dog.clone();
        System.out.println("dog的hashcode"+dog.hashCode());
        System.out.println("dog1的hashcode"+dog1.hashCode());
        System.out.println("dog2的hashcode"+dog2.hashCode());
    }
}
